package com.usian.student.controller;

import com.usian.common.ResultVo;
import com.usian.student.pojo.TbStudent;
import com.usian.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("student")
public class StudentController {
    @Autowired
    private StudentService studentService;
    @RequestMapping("register")
    public ResultVo register(@RequestBody TbStudent tbStudent) throws IOException {
        return studentService.register(tbStudent);
    }

}
